package com.gym.code.config.admin.bean.db;

import java.util.ArrayList;
import java.util.List;

import com.gym.code.config.admin.bean.table.TableMappingBean;

/**
 * 
 * @author xinchun.wang 
   @email: 532002108@qq.com
 * @createTime 2015-4-11 下午2:27:45
 */
public class DBMappingInfo extends DBBaseMappingInfo {
    private List<TableMappingBean> tableList;

	public List<TableMappingBean> getTableList() {
		if(tableList == null){
			tableList = new ArrayList<TableMappingBean>();
		}
		return tableList;
	}
	
	public DBMappingInfo (DBBaseMappingInfo baseBean){
		this.dbName = baseBean.dbName;
		this.id = baseBean.id;
		this.ip = baseBean.ip;
		this.jdbcTemplateName = baseBean.jdbcTemplateName;
		this.port = baseBean.port;
		this.password = baseBean.password;
		this.username = baseBean.username;
		this.basePath = baseBean.basePath;
		this.packagePath = baseBean.packagePath;
		this.creater = baseBean.creater;
	}

}
